package com.anda.driver.util.data;

import java.util.Date;

import com.anda.driver.util.CommUtil;

public class FreightSource {
	private long id;
	private String freightName;
	private String originProvince;
	private String originCity;
	private String originRegion;
	private String destProvince;
	private String destCity;
	private String destRegion;
	private String freightType;
	private String packType;
	private Float freightWeight;
	private Float freightVolumn;
	private String attention;
	private Date makeTime;
	private Date modifyTime;
	private int freightState;
	private int deliverUserId;
	private Date deliverTime;
	private int receiveUserId;
	private Date receiveTime;
	
	@Override
	public String toString() {
		return "FreightSource [id=" + id + ", freightName=" + freightName
				+ ", originProvince=" + originProvince + ", originCity="
				+ originCity + ", originRegion=" + originRegion
				+ ", destProvince=" + destProvince + ", destCity=" + destCity
				+ ", destRegion=" + destRegion + ", freightType=" + freightType
				+ ", packType=" + packType + ", freightWeight=" + freightWeight
				+ ", freightVolumn=" + freightVolumn + ", attention="
				+ attention + ", makeTime=" + makeTime + ", modifyTime="
				+ modifyTime + ", freightState=" + freightState
				+ ", deliverUserId=" + deliverUserId + ", deliverTime="
				+ deliverTime + ", receiveUserId=" + receiveUserId
				+ ", receiveTime=" + receiveTime + "]";
	}
	public int getFreightState() {
		return freightState;
	}
	public void setFreightState(int freightState) {
		this.freightState = freightState;
	}
	public FreightSource(int id) {
		this.id = id;
	}
	public FreightSource(){}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getFreightName() {
		return freightName;
	}
	public void setFreightName(String freightName) {
		this.freightName = freightName;
	}
	public String getOriginProvince() {
		return originProvince;
	}
	public void setOriginProvince(String originProvince) {
		this.originProvince = originProvince;
	}
	public String getOriginCity() {
		return originCity;
	}
	public void setOriginCity(String originCity) {
		this.originCity = originCity;
	}
	public String getOriginRegion() {
		return originRegion;
	}
	public void setOriginRegion(String originRegion) {
		this.originRegion = originRegion;
	}
	public String getDestProvince() {
		return destProvince;
	}
	public void setDestProvince(String destProvince) {
		this.destProvince = destProvince;
	}
	public String getDestCity() {
		return destCity;
	}
	public void setDestCity(String destCity) {
		this.destCity = destCity;
	}
	public String getDestRegion() {
		return destRegion;
	}
	public void setDestRegion(String destRegion) {
		this.destRegion = destRegion;
	}
	public String getFreightType() {
		return freightType;
	}
	public void setFreightType(String freightType) {
		this.freightType = freightType;
	}
	public String getPackType() {
		return packType;
	}
	public void setPackType(String packType) {
		this.packType = packType;
	}
	public Float getFreightWeight() {
		return freightWeight;
	}
	public void setFreightWeight(Float freightWeight) {
		this.freightWeight = freightWeight;
	}
	public Float getFreightVolumn() {
		return freightVolumn;
	}
	public void setFreightVolumn(Float freightVolumn) {
		this.freightVolumn = freightVolumn;
	}
	public String getAttention() {
		return attention;
	}
	public void setAttention(String attention) {
		this.attention = attention;
	}
	public Date getMakeTime() {
		return makeTime;
	}
	public void setMakeTime(Date makeTime) {
		this.makeTime = makeTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	
	public String getMakeTimeDate10(){
		return CommUtil.getDateStringFormat10(makeTime);
	}
	public String getModifyTimeDate10(){
		return CommUtil.getDateStringFormat10(modifyTime);
	}
	public String getMakeTimeDate17(){
		return CommUtil.getDateStringFormat17(makeTime);
	}
	public String getModifyTimeDate17(){
		return CommUtil.getDateStringFormat17(modifyTime);
	}
	public int getDeliverUserId() {
		return deliverUserId;
	}
	public void setDeliverUserId(int deliverUserId) {
		this.deliverUserId = deliverUserId;
	}
	public Date getDeliverTime() {
		return deliverTime;
	}
	public void setDeliverTime(Date deliverTime) {
		this.deliverTime = deliverTime;
	}
	public int getReceiveUserId() {
		return receiveUserId;
	}
	public void setReceiveUserId(int receiveUserId) {
		this.receiveUserId = receiveUserId;
	}
	public Date getReceiveTime() {
		return receiveTime;
	}
	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}
}
